package com.ksd.pug.cloud.web;

import com.ksd.pug.cloud.api.UserServcieFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 飞哥
 * @Title: 学相伴出品
 * @Description: 飞哥B站地址：https://space.bilibili.com/490711252
 * 记得关注和三连哦！
 * @Description: 我们有一个学习网站：https://www.kuangstudy.com
 * @date 2022/3/9$ 23:45$
 */
@RestController
@Slf4j
public class ProductController {


    @Autowired
    private UserServcieFeign userServcieFeign;

    @GetMapping("/getuser/{id}")
    public Map<String, Object> getUser(@PathVariable("id") Long id) {
        log.info("测试了......");
        return userServcieFeign.getUser(id);
    }
}
